﻿using System;
using System.Collections.Generic;
using System.Data.Linq;
using System.Data.Linq.Mapping;
using Microsoft.Phone.Data.Linq;
using Microsoft.Phone.Data.Linq.Mapping;

using System.Text;
using System.Threading.Tasks;

namespace BudgetManager.Entities
{
    [Table]
    public class Expense
    {
        [Column (IsPrimaryKey = true, IsDbGenerated = true, CanBeNull = false, DbType="INT NOT NULL identity")]
        public int ExpenseId { get; set; }

        [Column]
        public float ExpenseAmount { get; set; }

        [Column]
        public string Category { get; set; }

        [Column]
        public DateTime? ExpenseDate { get; set; }

        [Column]
        public string Comments { get; set; }

        [Column]
        public bool IsActive { get; set; }
    }
}
